<template>
  <div>
    <div class="title">周末去哪儿</div>
    <div class="weekend-content" v-for="item of weekendList" :key="item.id">
      <div class="weekend-img"><img class="pic" :src="item.imgUrl" alt=""></div>
      <div class="info">
        <p class="info-title">{{item.title}}</p>
        <p class="desc">{{item.desc}}</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HomeWeekend',
  props: {
    weekendList: Array
  }
}
</script>

<style lang="stylus" scoped>
  @import "~styles/varibles.styl"
  .title
    height .8rem
    line-height .8rem
    padding-left .26rem
    color $txtColor
  .weekend-content
    background #fff
    .weekend-img
      height: 0
      overflow: hidden
      padding-bottom 37.4375%
      .pic
        width 100%
  .info
    padding .14rem .2rem .2rem .2rem
    .info-title
      overflow: hidden
      color $txtColor
      font-size .28rem
      line-height: .48rem
      white-space nowrap
      text-overflow ellipsis
    .desc
      overflow: hidden
      color #616161
      padding-right: .14rem
      font-size .24rem
      line-height: .24rem
      white-space nowrap
      text-overflow ellipsis
</style>
